const info = 'Feidao v5.0';

export default function log(...msg: string[]) {
	if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
		const border = 'background: #ff66a5; padding:5px 0;';
		window.console.log(`\n %c\t%c ${info} ✰ %c${msg.join('\t')}  %c\t%c  http://www.ifeidao.com/ %c \n\n`, border, 'color:green; background: #030307; padding:5px 0;', 'color:red; background: #030307; padding:5px 0;', border, 'background: #ffc3dc; padding:5px 0;', border);
	} else if (window.console) {
		window.console.log(`${info} - ${msg.join('\t')} - http://www.ifeidao.com/`);
	} else {
	}
}
